package com.lagou.sqlSession;

import lagou.io.pojo.Configuration;
import lagou.io.pojo.MappedStagement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface Executor {
    //作为查询
    public<E> List<E> query(Configuration configuration, MappedStagement mappedStagement, Object... params) throws SQLException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, IntrospectionException, InstantiationException, InvocationTargetException;

    //作为更新删除
    public  int update(Configuration configuration,MappedStagement mappedStagement,Object...params) throws Exception;
}
